package com.ruoyi.iot.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备基础对象 fac_device_basic
 *
 * @author rww
 * @date 2024-06-22
 */
public class FacDeviceBasic extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 设备序列号 */
    @Excel(name = "设备序列号")
    private String deviceSn;

    /** 设备种类编码 */
    @Excel(name = "设备种类编码")
    private String kindClass;

    /** 设备类型编码 */
    @Excel(name = "设备类型编码")
    private String typeClass;

    /** 设备型号编码 */
    @Excel(name = "设备型号编码")
    private String typeCode;

    /** 设备附属信息表 */
    private String attachedTable;

    /** 设备供应商 */
    @Excel(name = "设备供应商")
    private String supplier;

    /** 设备状态 */
    @Excel(name = "设备状态")
    private String status;

    /** 设备描述 */
    private String description;

    /** 创建人 */
    private String creator;

    /** 修改人 */
    private String modifier;

    /** 修改时间 */
    private Date modifyTim;

    /** 父级设备PID */
    private String pid;

    /** 经纬度 */
    @Excel(name = "经纬度")
    private String lnglat;

    /** 创建人名称 */
    @Excel(name = "创建人名称")
    private String creatorName;

    /**设备没有监测数据**/
    @Excel(name = "设备是否有监测数据*")
    private String isNoData;

    /**设备图片地址**/
    @Excel(name = "设备图片地址*")
    private String imgUrl;

    List<FacDeviceFile> deviceFileList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDeviceName(String deviceName)
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName()
    {
        return deviceName;
    }
    public void setDeviceSn(String deviceSn)
    {
        this.deviceSn = deviceSn;
    }

    public String getDeviceSn()
    {
        return deviceSn;
    }
    public void setKindClass(String kindClass)
    {
        this.kindClass = kindClass;
    }

    public String getKindClass()
    {
        return kindClass;
    }
    public void setTypeClass(String typeClass)
    {
        this.typeClass = typeClass;
    }

    public String getTypeClass()
    {
        return typeClass;
    }
    public void setTypeCode(String typeCode)
    {
        this.typeCode = typeCode;
    }

    public String getTypeCode()
    {
        return typeCode;
    }
    public void setAttachedTable(String attachedTable)
    {
        this.attachedTable = attachedTable;
    }

    public String getAttachedTable()
    {
        return attachedTable;
    }
    public void setSupplier(String supplier)
    {
        this.supplier = supplier;
    }

    public String getSupplier()
    {
        return supplier;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setCreator(String creator)
    {
        this.creator = creator;
    }

    public String getCreator()
    {
        return creator;
    }
    public void setModifier(String modifier)
    {
        this.modifier = modifier;
    }

    public String getModifier()
    {
        return modifier;
    }
    public void setModifyTim(Date modifyTim)
    {
        this.modifyTim = modifyTim;
    }

    public Date getModifyTim()
    {
        return modifyTim;
    }
    public void setPid(String pid)
    {
        this.pid = pid;
    }

    public String getPid()
    {
        return pid;
    }
    public void setLnglat(String lnglat)
    {
        this.lnglat = lnglat;
    }

    public String getLnglat()
    {
        return lnglat;
    }
    public void setCreatorName(String creatorName)
    {
        this.creatorName = creatorName;
    }

    public String getCreatorName()
    {
        return creatorName;
    }

    public String getIsNoData() {
        return isNoData;
    }

    public void setIsNoData(String isNoData) {
        this.isNoData = isNoData;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public List<FacDeviceFile> getDeviceFileList() {
        return deviceFileList;
    }

    public void setDeviceFileList(List<FacDeviceFile> deviceFileList) {
        this.deviceFileList = deviceFileList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceName", getDeviceName())
            .append("deviceSn", getDeviceSn())
            .append("kindClass", getKindClass())
            .append("typeClass", getTypeClass())
            .append("typeCode", getTypeCode())
            .append("attachedTable", getAttachedTable())
            .append("supplier", getSupplier())
            .append("status", getStatus())
            .append("description", getDescription())
            .append("creator", getCreator())
            .append("createTime", getCreateTime())
            .append("modifier", getModifier())
            .append("modifyTim", getModifyTim())
            .append("pid", getPid())
            .append("lnglat", getLnglat())
            .append("creatorName", getCreatorName())
            .append("isNoData", getIsNoData())
            .append("imgUrl", getImgUrl())
            .toString();
    }
}
